module.exports = {
  env: {
    NODE_ENV: '"development"'
  },
  defineConstants: {},
  mini: {
    enableSourceMap: false,
    optimizeMainPackage: {
      enable: true
    },
    webpackChain(chain, webpack) {
      // chain.plugin('analyzer').use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
      chain.plugin('context').use(webpack.ContextReplacementPlugin, [/moment[/\\]dist[/\\]locale$/, /zh-cn/])
    },
    chainWebpack(config) {
      console.log(config,'configconfig');
      config.module
        .rule('mjs$')
        .test(/\.mjs$/)
        .include.add(/node_modules/)
        .end()
        .type('javascript/auto')
    }
  },
  h5: {
    esnextModules: ['taro-ui']
  },

}
